using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;
using Dating.DA;
using Dating;

namespace Dating.WS
{
	[WebService(Namespace = "http://tempuri.org/")]
	[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
	public class DatingService : System.Web.Services.WebService
	{

		[WebMethod]
		public Alert AlertSelect(int alertID, int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return null;

			AlertDA obj = new AlertDA("ConnectionString");
			return obj.Select(alertID,tenantID);
		}


		[WebMethod]
		public List<Alert> AlertSelectAll(int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return null;

			AlertDA obj = new AlertDA("ConnectionString");
			return obj.SelectAll(tenantID);
		}


		[WebMethod]
		public List<Alert> AlertSelectAllByAlertID(int alertID, int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return null;

			AlertDA obj = new AlertDA("ConnectionString");
			return obj.SelectAllByAlertID(alertID,tenantID);
		}

		[WebMethod]
		public List<Alert> AlertSelectAllByTenantID(int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return null;

			AlertDA obj = new AlertDA("ConnectionString");
			return obj.SelectAllByTenantID(tenantID);
		}


		[WebMethod]
		public int AlertInsert(Alert alert, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(alert.TenantID, secureCode))
					return -1;

			AlertDA obj = new AlertDA("ConnectionString");
			return obj.Insert(alert);
		}


		[WebMethod]
		public int AlertUpdate(Alert alert, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(alert.TenantID, secureCode))
					return -1;

			AlertDA obj = new AlertDA("ConnectionString");
			return obj.Update(alert);
		}


		[WebMethod]
		public int AlertDelete(int alertID, int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return -1;

			AlertDA obj = new AlertDA("ConnectionString");
			return obj.Delete(alertID,tenantID);
		}


		[WebMethod]
		public  int AlertDeleteAllByAlertID(int alertID, int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return -1;

			AlertDA obj = new AlertDA("ConnectionString");
			return obj.DeleteAllByAlertID(alertID,tenantID);
		}

		[WebMethod]
		public  int AlertDeleteAllByTenantID(int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return -1;

			AlertDA obj = new AlertDA("ConnectionString");
			return obj.DeleteAllByTenantID(tenantID);
		}



		[WebMethod]
		public List<BlockedUser> BlockedUserSelectAll(int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return null;

			BlockedUserDA obj = new BlockedUserDA("ConnectionString");
			return obj.SelectAll(tenantID);
		}


		[WebMethod]
		public List<BlockedUser> BlockedUserSelectAllByProfileID(int profileID, int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return null;

			BlockedUserDA obj = new BlockedUserDA("ConnectionString");
			return obj.SelectAllByProfileID(profileID,tenantID);
		}

		[WebMethod]
		public List<BlockedUser> BlockedUserSelectAllByTenantID(int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return null;

			BlockedUserDA obj = new BlockedUserDA("ConnectionString");
			return obj.SelectAllByTenantID(tenantID);
		}


		[WebMethod]
		public int BlockedUserInsert(BlockedUser blockedUser, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(blockedUser.TenantID, secureCode))
					return -1;

			BlockedUserDA obj = new BlockedUserDA("ConnectionString");
			return obj.Insert(blockedUser);
		}




		[WebMethod]
		public  int BlockedUserDeleteAllByProfileID(int profileID, int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return -1;

			BlockedUserDA obj = new BlockedUserDA("ConnectionString");
			return obj.DeleteAllByProfileID(profileID,tenantID);
		}

		[WebMethod]
		public  int BlockedUserDeleteAllByTenantID(int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return -1;

			BlockedUserDA obj = new BlockedUserDA("ConnectionString");
			return obj.DeleteAllByTenantID(tenantID);
		}


		[WebMethod]
		public Entity EntitySelect(int entityID, int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return null;

			EntityDA obj = new EntityDA("ConnectionString");
			return obj.Select(entityID,tenantID);
		}


		[WebMethod]
		public List<Entity> EntitySelectAll(int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return null;

			EntityDA obj = new EntityDA("ConnectionString");
			return obj.SelectAll(tenantID);
		}


		[WebMethod]
		public List<Entity> EntitySelectAllByTenantID(int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return null;

			EntityDA obj = new EntityDA("ConnectionString");
			return obj.SelectAllByTenantID(tenantID);
		}


		[WebMethod]
		public int EntityInsert(Entity entity, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(entity.TenantID, secureCode))
					return -1;

			EntityDA obj = new EntityDA("ConnectionString");
			return obj.Insert(entity);
		}


		[WebMethod]
		public int EntityUpdate(Entity entity, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(entity.TenantID, secureCode))
					return -1;

			EntityDA obj = new EntityDA("ConnectionString");
			return obj.Update(entity);
		}


		[WebMethod]
		public int EntityDelete(int entityID, int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return -1;

			EntityDA obj = new EntityDA("ConnectionString");
			return obj.Delete(entityID,tenantID);
		}


		[WebMethod]
		public  int EntityDeleteAllByTenantID(int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return -1;

			EntityDA obj = new EntityDA("ConnectionString");
			return obj.DeleteAllByTenantID(tenantID);
		}



		[WebMethod]
		public List<EntityValue> EntityValueSelectAll(int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return null;

			EntityValueDA obj = new EntityValueDA("ConnectionString");
			return obj.SelectAll(tenantID);
		}


		[WebMethod]
		public List<EntityValue> EntityValueSelectAllByEntityID(int entityID, int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return null;

			EntityValueDA obj = new EntityValueDA("ConnectionString");
			return obj.SelectAllByEntityID(entityID,tenantID);
		}

		[WebMethod]
		public List<EntityValue> EntityValueSelectAllByTenantID(int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return null;

			EntityValueDA obj = new EntityValueDA("ConnectionString");
			return obj.SelectAllByTenantID(tenantID);
		}


		[WebMethod]
		public int EntityValueInsert(EntityValue entityValue, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(entityValue.TenantID, secureCode))
					return -1;

			EntityValueDA obj = new EntityValueDA("ConnectionString");
			return obj.Insert(entityValue);
		}




		[WebMethod]
		public  int EntityValueDeleteAllByEntityID(int entityID, int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return -1;

			EntityValueDA obj = new EntityValueDA("ConnectionString");
			return obj.DeleteAllByEntityID(entityID,tenantID);
		}

		[WebMethod]
		public  int EntityValueDeleteAllByTenantID(int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return -1;

			EntityValueDA obj = new EntityValueDA("ConnectionString");
			return obj.DeleteAllByTenantID(tenantID);
		}


		[WebMethod]
		public FlirtIcon FlirtIconSelect(int iconID, int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return null;

			FlirtIconDA obj = new FlirtIconDA("ConnectionString");
			return obj.Select(iconID,tenantID);
		}


		[WebMethod]
		public List<FlirtIcon> FlirtIconSelectAll(int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return null;

			FlirtIconDA obj = new FlirtIconDA("ConnectionString");
			return obj.SelectAll(tenantID);
		}


		[WebMethod]
		public List<FlirtIcon> FlirtIconSelectAllByTenantID(int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return null;

			FlirtIconDA obj = new FlirtIconDA("ConnectionString");
			return obj.SelectAllByTenantID(tenantID);
		}


		[WebMethod]
		public int FlirtIconInsert(FlirtIcon flirtIcon, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(flirtIcon.TenantID, secureCode))
					return -1;

			FlirtIconDA obj = new FlirtIconDA("ConnectionString");
			return obj.Insert(flirtIcon);
		}


		[WebMethod]
		public int FlirtIconUpdate(FlirtIcon flirtIcon, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(flirtIcon.TenantID, secureCode))
					return -1;

			FlirtIconDA obj = new FlirtIconDA("ConnectionString");
			return obj.Update(flirtIcon);
		}


		[WebMethod]
		public int FlirtIconDelete(int iconID, int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return -1;

			FlirtIconDA obj = new FlirtIconDA("ConnectionString");
			return obj.Delete(iconID,tenantID);
		}


		[WebMethod]
		public  int FlirtIconDeleteAllByTenantID(int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return -1;

			FlirtIconDA obj = new FlirtIconDA("ConnectionString");
			return obj.DeleteAllByTenantID(tenantID);
		}


		[WebMethod]
		public GeneralBuildPreference GeneralBuildPreferenceSelect(int generalBuildID, int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return null;

			GeneralBuildPreferenceDA obj = new GeneralBuildPreferenceDA("ConnectionString");
			return obj.Select(generalBuildID,tenantID);
		}


		[WebMethod]
		public List<GeneralBuildPreference> GeneralBuildPreferenceSelectAll(int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return null;

			GeneralBuildPreferenceDA obj = new GeneralBuildPreferenceDA("ConnectionString");
			return obj.SelectAll(tenantID);
		}


		[WebMethod]
		public List<GeneralBuildPreference> GeneralBuildPreferenceSelectAllByPreferenceID(int preferenceID, int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return null;

			GeneralBuildPreferenceDA obj = new GeneralBuildPreferenceDA("ConnectionString");
			return obj.SelectAllByPreferenceID(preferenceID,tenantID);
		}

		[WebMethod]
		public List<GeneralBuildPreference> GeneralBuildPreferenceSelectAllByProfileID(int profileID, int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return null;

			GeneralBuildPreferenceDA obj = new GeneralBuildPreferenceDA("ConnectionString");
			return obj.SelectAllByProfileID(profileID,tenantID);
		}

		[WebMethod]
		public List<GeneralBuildPreference> GeneralBuildPreferenceSelectAllByTenantID(int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return null;

			GeneralBuildPreferenceDA obj = new GeneralBuildPreferenceDA("ConnectionString");
			return obj.SelectAllByTenantID(tenantID);
		}


		[WebMethod]
		public int GeneralBuildPreferenceInsert(GeneralBuildPreference generalBuildPreference, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(generalBuildPreference.TenantID, secureCode))
					return -1;

			GeneralBuildPreferenceDA obj = new GeneralBuildPreferenceDA("ConnectionString");
			return obj.Insert(generalBuildPreference);
		}


		[WebMethod]
		public int GeneralBuildPreferenceUpdate(GeneralBuildPreference generalBuildPreference, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(generalBuildPreference.TenantID, secureCode))
					return -1;

			GeneralBuildPreferenceDA obj = new GeneralBuildPreferenceDA("ConnectionString");
			return obj.Update(generalBuildPreference);
		}


		[WebMethod]
		public int GeneralBuildPreferenceDelete(int generalBuildID, int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return -1;

			GeneralBuildPreferenceDA obj = new GeneralBuildPreferenceDA("ConnectionString");
			return obj.Delete(generalBuildID,tenantID);
		}


		[WebMethod]
		public  int GeneralBuildPreferenceDeleteAllByPreferenceID(int preferenceID, int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return -1;

			GeneralBuildPreferenceDA obj = new GeneralBuildPreferenceDA("ConnectionString");
			return obj.DeleteAllByPreferenceID(preferenceID,tenantID);
		}

		[WebMethod]
		public  int GeneralBuildPreferenceDeleteAllByProfileID(int profileID, int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return -1;

			GeneralBuildPreferenceDA obj = new GeneralBuildPreferenceDA("ConnectionString");
			return obj.DeleteAllByProfileID(profileID,tenantID);
		}

		[WebMethod]
		public  int GeneralBuildPreferenceDeleteAllByTenantID(int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return -1;

			GeneralBuildPreferenceDA obj = new GeneralBuildPreferenceDA("ConnectionString");
			return obj.DeleteAllByTenantID(tenantID);
		}



		[WebMethod]
		public List<MaritalStatusPreference> MaritalStatusPreferenceSelectAll(int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return null;

			MaritalStatusPreferenceDA obj = new MaritalStatusPreferenceDA("ConnectionString");
			return obj.SelectAll(tenantID);
		}


		[WebMethod]
		public List<MaritalStatusPreference> MaritalStatusPreferenceSelectAllByProfileID(int profileID, int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return null;

			MaritalStatusPreferenceDA obj = new MaritalStatusPreferenceDA("ConnectionString");
			return obj.SelectAllByProfileID(profileID,tenantID);
		}

		[WebMethod]
		public List<MaritalStatusPreference> MaritalStatusPreferenceSelectAllByTenantID(int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return null;

			MaritalStatusPreferenceDA obj = new MaritalStatusPreferenceDA("ConnectionString");
			return obj.SelectAllByTenantID(tenantID);
		}


		[WebMethod]
		public int MaritalStatusPreferenceInsert(MaritalStatusPreference maritalStatusPreference, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(maritalStatusPreference.TenantID, secureCode))
					return -1;

			MaritalStatusPreferenceDA obj = new MaritalStatusPreferenceDA("ConnectionString");
			return obj.Insert(maritalStatusPreference);
		}




		[WebMethod]
		public  int MaritalStatusPreferenceDeleteAllByProfileID(int profileID, int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return -1;

			MaritalStatusPreferenceDA obj = new MaritalStatusPreferenceDA("ConnectionString");
			return obj.DeleteAllByProfileID(profileID,tenantID);
		}

		[WebMethod]
		public  int MaritalStatusPreferenceDeleteAllByTenantID(int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return -1;

			MaritalStatusPreferenceDA obj = new MaritalStatusPreferenceDA("ConnectionString");
			return obj.DeleteAllByTenantID(tenantID);
		}


		[WebMethod]
		public MemberAlertPreference MemberAlertPreferenceSelect(int alertPreferenceID, int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return null;

			MemberAlertPreferenceDA obj = new MemberAlertPreferenceDA("ConnectionString");
			return obj.Select(alertPreferenceID,tenantID);
		}


		[WebMethod]
		public List<MemberAlertPreference> MemberAlertPreferenceSelectAll(int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return null;

			MemberAlertPreferenceDA obj = new MemberAlertPreferenceDA("ConnectionString");
			return obj.SelectAll(tenantID);
		}


		[WebMethod]
		public List<MemberAlertPreference> MemberAlertPreferenceSelectAllByAlertID(int alertID, int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return null;

			MemberAlertPreferenceDA obj = new MemberAlertPreferenceDA("ConnectionString");
			return obj.SelectAllByAlertID(alertID,tenantID);
		}

		[WebMethod]
		public List<MemberAlertPreference> MemberAlertPreferenceSelectAllByProfileID(int profileID, int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return null;

			MemberAlertPreferenceDA obj = new MemberAlertPreferenceDA("ConnectionString");
			return obj.SelectAllByProfileID(profileID,tenantID);
		}

		[WebMethod]
		public List<MemberAlertPreference> MemberAlertPreferenceSelectAllByTenantID(int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return null;

			MemberAlertPreferenceDA obj = new MemberAlertPreferenceDA("ConnectionString");
			return obj.SelectAllByTenantID(tenantID);
		}


		[WebMethod]
		public int MemberAlertPreferenceInsert(MemberAlertPreference memberAlertPreference, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(memberAlertPreference.TenantID, secureCode))
					return -1;

			MemberAlertPreferenceDA obj = new MemberAlertPreferenceDA("ConnectionString");
			return obj.Insert(memberAlertPreference);
		}


		[WebMethod]
		public int MemberAlertPreferenceUpdate(MemberAlertPreference memberAlertPreference, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(memberAlertPreference.TenantID, secureCode))
					return -1;

			MemberAlertPreferenceDA obj = new MemberAlertPreferenceDA("ConnectionString");
			return obj.Update(memberAlertPreference);
		}


		[WebMethod]
		public int MemberAlertPreferenceDelete(int alertPreferenceID, int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return -1;

			MemberAlertPreferenceDA obj = new MemberAlertPreferenceDA("ConnectionString");
			return obj.Delete(alertPreferenceID,tenantID);
		}


		[WebMethod]
		public  int MemberAlertPreferenceDeleteAllByAlertID(int alertID, int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return -1;

			MemberAlertPreferenceDA obj = new MemberAlertPreferenceDA("ConnectionString");
			return obj.DeleteAllByAlertID(alertID,tenantID);
		}

		[WebMethod]
		public  int MemberAlertPreferenceDeleteAllByProfileID(int profileID, int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return -1;

			MemberAlertPreferenceDA obj = new MemberAlertPreferenceDA("ConnectionString");
			return obj.DeleteAllByProfileID(profileID,tenantID);
		}

		[WebMethod]
		public  int MemberAlertPreferenceDeleteAllByTenantID(int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return -1;

			MemberAlertPreferenceDA obj = new MemberAlertPreferenceDA("ConnectionString");
			return obj.DeleteAllByTenantID(tenantID);
		}


		[WebMethod]
		public MemberAudio MemberAudioSelect(int audioID, int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return null;

			MemberAudioDA obj = new MemberAudioDA("ConnectionString");
			return obj.Select(audioID,tenantID);
		}


		[WebMethod]
		public List<MemberAudio> MemberAudioSelectAll(int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return null;

			MemberAudioDA obj = new MemberAudioDA("ConnectionString");
			return obj.SelectAll(tenantID);
		}


		[WebMethod]
		public List<MemberAudio> MemberAudioSelectAllByProfileID(int profileID, int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return null;

			MemberAudioDA obj = new MemberAudioDA("ConnectionString");
			return obj.SelectAllByProfileID(profileID,tenantID);
		}

		[WebMethod]
		public List<MemberAudio> MemberAudioSelectAllByTenantID(int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return null;

			MemberAudioDA obj = new MemberAudioDA("ConnectionString");
			return obj.SelectAllByTenantID(tenantID);
		}


		[WebMethod]
		public int MemberAudioInsert(MemberAudio memberAudio, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(memberAudio.TenantID, secureCode))
					return -1;

			MemberAudioDA obj = new MemberAudioDA("ConnectionString");
			return obj.Insert(memberAudio);
		}


		[WebMethod]
		public int MemberAudioUpdate(MemberAudio memberAudio, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(memberAudio.TenantID, secureCode))
					return -1;

			MemberAudioDA obj = new MemberAudioDA("ConnectionString");
			return obj.Update(memberAudio);
		}


		[WebMethod]
		public int MemberAudioDelete(int audioID, int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return -1;

			MemberAudioDA obj = new MemberAudioDA("ConnectionString");
			return obj.Delete(audioID,tenantID);
		}


		[WebMethod]
		public  int MemberAudioDeleteAllByProfileID(int profileID, int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return -1;

			MemberAudioDA obj = new MemberAudioDA("ConnectionString");
			return obj.DeleteAllByProfileID(profileID,tenantID);
		}

		[WebMethod]
		public  int MemberAudioDeleteAllByTenantID(int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return -1;

			MemberAudioDA obj = new MemberAudioDA("ConnectionString");
			return obj.DeleteAllByTenantID(tenantID);
		}


		[WebMethod]
		public MemberGreeting MemberGreetingSelect(int memberGreetingID, int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return null;

			MemberGreetingDA obj = new MemberGreetingDA("ConnectionString");
			return obj.Select(memberGreetingID,tenantID);
		}


		[WebMethod]
		public List<MemberGreeting> MemberGreetingSelectAll(int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return null;

			MemberGreetingDA obj = new MemberGreetingDA("ConnectionString");
			return obj.SelectAll(tenantID);
		}


		[WebMethod]
		public List<MemberGreeting> MemberGreetingSelectAllByProfileID(int profileID, int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return null;

			MemberGreetingDA obj = new MemberGreetingDA("ConnectionString");
			return obj.SelectAllByProfileID(profileID,tenantID);
		}

		[WebMethod]
		public List<MemberGreeting> MemberGreetingSelectAllByTenantID(int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return null;

			MemberGreetingDA obj = new MemberGreetingDA("ConnectionString");
			return obj.SelectAllByTenantID(tenantID);
		}


		[WebMethod]
		public int MemberGreetingInsert(MemberGreeting memberGreeting, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(memberGreeting.TenantID, secureCode))
					return -1;

			MemberGreetingDA obj = new MemberGreetingDA("ConnectionString");
			return obj.Insert(memberGreeting);
		}


		[WebMethod]
		public int MemberGreetingUpdate(MemberGreeting memberGreeting, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(memberGreeting.TenantID, secureCode))
					return -1;

			MemberGreetingDA obj = new MemberGreetingDA("ConnectionString");
			return obj.Update(memberGreeting);
		}


		[WebMethod]
		public int MemberGreetingDelete(int memberGreetingID, int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return -1;

			MemberGreetingDA obj = new MemberGreetingDA("ConnectionString");
			return obj.Delete(memberGreetingID,tenantID);
		}


		[WebMethod]
		public  int MemberGreetingDeleteAllByProfileID(int profileID, int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return -1;

			MemberGreetingDA obj = new MemberGreetingDA("ConnectionString");
			return obj.DeleteAllByProfileID(profileID,tenantID);
		}

		[WebMethod]
		public  int MemberGreetingDeleteAllByTenantID(int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return -1;

			MemberGreetingDA obj = new MemberGreetingDA("ConnectionString");
			return obj.DeleteAllByTenantID(tenantID);
		}



		[WebMethod]
		public List<MemberIdeaMessage> MemberIdeaMessageSelectAll(int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return null;

			MemberIdeaMessageDA obj = new MemberIdeaMessageDA("ConnectionString");
			return obj.SelectAll(tenantID);
		}


		[WebMethod]
		public List<MemberIdeaMessage> MemberIdeaMessageSelectAllByProfileID(int profileID, int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return null;

			MemberIdeaMessageDA obj = new MemberIdeaMessageDA("ConnectionString");
			return obj.SelectAllByProfileID(profileID,tenantID);
		}


		[WebMethod]
		public int MemberIdeaMessageInsert(MemberIdeaMessage memberIdeaMessage, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(memberIdeaMessage.TenantID, secureCode))
					return -1;

			MemberIdeaMessageDA obj = new MemberIdeaMessageDA("ConnectionString");
			return obj.Insert(memberIdeaMessage);
		}




		[WebMethod]
		public  int MemberIdeaMessageDeleteAllByProfileID(int profileID, int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return -1;

			MemberIdeaMessageDA obj = new MemberIdeaMessageDA("ConnectionString");
			return obj.DeleteAllByProfileID(profileID,tenantID);
		}



		[WebMethod]
		public List<MemberPersonality> MemberPersonalitySelectAll(int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return null;

			MemberPersonalityDA obj = new MemberPersonalityDA("ConnectionString");
			return obj.SelectAll(tenantID);
		}


		[WebMethod]
		public List<MemberPersonality> MemberPersonalitySelectAllByProfileID(int profileID, int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return null;

			MemberPersonalityDA obj = new MemberPersonalityDA("ConnectionString");
			return obj.SelectAllByProfileID(profileID,tenantID);
		}


		[WebMethod]
		public int MemberPersonalityInsert(MemberPersonality memberPersonality, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(memberPersonality.TenantID, secureCode))
					return -1;

			MemberPersonalityDA obj = new MemberPersonalityDA("ConnectionString");
			return obj.Insert(memberPersonality);
		}




		[WebMethod]
		public  int MemberPersonalityDeleteAllByProfileID(int profileID, int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return -1;

			MemberPersonalityDA obj = new MemberPersonalityDA("ConnectionString");
			return obj.DeleteAllByProfileID(profileID,tenantID);
		}


		[WebMethod]
		public MemberPhoto MemberPhotoSelect(int photoID, int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return null;

			MemberPhotoDA obj = new MemberPhotoDA("ConnectionString");
			return obj.Select(photoID,tenantID);
		}


		[WebMethod]
		public List<MemberPhoto> MemberPhotoSelectAll(int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return null;

			MemberPhotoDA obj = new MemberPhotoDA("ConnectionString");
			return obj.SelectAll(tenantID);
		}


		[WebMethod]
		public List<MemberPhoto> MemberPhotoSelectAllByPhotoID(int photoID, int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return null;

			MemberPhotoDA obj = new MemberPhotoDA("ConnectionString");
			return obj.SelectAllByPhotoID(photoID,tenantID);
		}

		[WebMethod]
		public List<MemberPhoto> MemberPhotoSelectAllByTenantID(int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return null;

			MemberPhotoDA obj = new MemberPhotoDA("ConnectionString");
			return obj.SelectAllByTenantID(tenantID);
		}


		[WebMethod]
		public int MemberPhotoInsert(MemberPhoto memberPhoto, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(memberPhoto.TenantID, secureCode))
					return -1;

			MemberPhotoDA obj = new MemberPhotoDA("ConnectionString");
			return obj.Insert(memberPhoto);
		}


		[WebMethod]
		public int MemberPhotoUpdate(MemberPhoto memberPhoto, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(memberPhoto.TenantID, secureCode))
					return -1;

			MemberPhotoDA obj = new MemberPhotoDA("ConnectionString");
			return obj.Update(memberPhoto);
		}


		[WebMethod]
		public int MemberPhotoDelete(int photoID, int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return -1;

			MemberPhotoDA obj = new MemberPhotoDA("ConnectionString");
			return obj.Delete(photoID,tenantID);
		}


		[WebMethod]
		public  int MemberPhotoDeleteAllByPhotoID(int photoID, int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return -1;

			MemberPhotoDA obj = new MemberPhotoDA("ConnectionString");
			return obj.DeleteAllByPhotoID(photoID,tenantID);
		}

		[WebMethod]
		public  int MemberPhotoDeleteAllByTenantID(int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return -1;

			MemberPhotoDA obj = new MemberPhotoDA("ConnectionString");
			return obj.DeleteAllByTenantID(tenantID);
		}


		[WebMethod]
		public MemberPreference MemberPreferenceSelect(int preferenceID, int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return null;

			MemberPreferenceDA obj = new MemberPreferenceDA("ConnectionString");
			return obj.Select(preferenceID,tenantID);
		}


		[WebMethod]
		public List<MemberPreference> MemberPreferenceSelectAll(int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return null;

			MemberPreferenceDA obj = new MemberPreferenceDA("ConnectionString");
			return obj.SelectAll(tenantID);
		}


		[WebMethod]
		public List<MemberPreference> MemberPreferenceSelectAllByProfileID(int profileID, int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return null;

			MemberPreferenceDA obj = new MemberPreferenceDA("ConnectionString");
			return obj.SelectAllByProfileID(profileID,tenantID);
		}

		[WebMethod]
		public List<MemberPreference> MemberPreferenceSelectAllByTenantID(int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return null;

			MemberPreferenceDA obj = new MemberPreferenceDA("ConnectionString");
			return obj.SelectAllByTenantID(tenantID);
		}


		[WebMethod]
		public int MemberPreferenceInsert(MemberPreference memberPreference, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(memberPreference.TenantID, secureCode))
					return -1;

			MemberPreferenceDA obj = new MemberPreferenceDA("ConnectionString");
			return obj.Insert(memberPreference);
		}


		[WebMethod]
		public int MemberPreferenceUpdate(MemberPreference memberPreference, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(memberPreference.TenantID, secureCode))
					return -1;

			MemberPreferenceDA obj = new MemberPreferenceDA("ConnectionString");
			return obj.Update(memberPreference);
		}


		[WebMethod]
		public int MemberPreferenceDelete(int preferenceID, int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return -1;

			MemberPreferenceDA obj = new MemberPreferenceDA("ConnectionString");
			return obj.Delete(preferenceID,tenantID);
		}


		[WebMethod]
		public  int MemberPreferenceDeleteAllByProfileID(int profileID, int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return -1;

			MemberPreferenceDA obj = new MemberPreferenceDA("ConnectionString");
			return obj.DeleteAllByProfileID(profileID,tenantID);
		}

		[WebMethod]
		public  int MemberPreferenceDeleteAllByTenantID(int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return -1;

			MemberPreferenceDA obj = new MemberPreferenceDA("ConnectionString");
			return obj.DeleteAllByTenantID(tenantID);
		}


		[WebMethod]
		public MemberProfile MemberProfileSelect(int profileID, int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return null;

			MemberProfileDA obj = new MemberProfileDA("ConnectionString");
			return obj.Select(profileID,tenantID);
		}


		[WebMethod]
		public List<MemberProfile> MemberProfileSelectAll(int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return null;

			MemberProfileDA obj = new MemberProfileDA("ConnectionString");
			return obj.SelectAll(tenantID);
		}


		[WebMethod]
		public List<MemberProfile> MemberProfileSelectAllByTenantID(int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return null;

			MemberProfileDA obj = new MemberProfileDA("ConnectionString");
			return obj.SelectAllByTenantID(tenantID);
		}


		[WebMethod]
		public int MemberProfileInsert(MemberProfile memberProfile, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(memberProfile.TenantID, secureCode))
					return -1;

			MemberProfileDA obj = new MemberProfileDA("ConnectionString");
			return obj.Insert(memberProfile);
		}


		[WebMethod]
		public int MemberProfileUpdate(MemberProfile memberProfile, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(memberProfile.TenantID, secureCode))
					return -1;

			MemberProfileDA obj = new MemberProfileDA("ConnectionString");
			return obj.Update(memberProfile);
		}


		[WebMethod]
		public int MemberProfileDelete(int profileID, int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return -1;

			MemberProfileDA obj = new MemberProfileDA("ConnectionString");
			return obj.Delete(profileID,tenantID);
		}


		[WebMethod]
		public  int MemberProfileDeleteAllByTenantID(int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return -1;

			MemberProfileDA obj = new MemberProfileDA("ConnectionString");
			return obj.DeleteAllByTenantID(tenantID);
		}


		[WebMethod]
		public MemberSubscription MemberSubscriptionSelect(int memberSubscriptionID, int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return null;

			MemberSubscriptionDA obj = new MemberSubscriptionDA("ConnectionString");
			return obj.Select(memberSubscriptionID,tenantID);
		}


		[WebMethod]
		public List<MemberSubscription> MemberSubscriptionSelectAll(int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return null;

			MemberSubscriptionDA obj = new MemberSubscriptionDA("ConnectionString");
			return obj.SelectAll(tenantID);
		}


		[WebMethod]
		public List<MemberSubscription> MemberSubscriptionSelectAllByProfileID(int profileID, int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return null;

			MemberSubscriptionDA obj = new MemberSubscriptionDA("ConnectionString");
			return obj.SelectAllByProfileID(profileID,tenantID);
		}

		[WebMethod]
		public List<MemberSubscription> MemberSubscriptionSelectAllBySubscriptionID(int subscriptionID, int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return null;

			MemberSubscriptionDA obj = new MemberSubscriptionDA("ConnectionString");
			return obj.SelectAllBySubscriptionID(subscriptionID,tenantID);
		}

		[WebMethod]
		public List<MemberSubscription> MemberSubscriptionSelectAllByTenantID(int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return null;

			MemberSubscriptionDA obj = new MemberSubscriptionDA("ConnectionString");
			return obj.SelectAllByTenantID(tenantID);
		}


		[WebMethod]
		public int MemberSubscriptionInsert(MemberSubscription memberSubscription, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(memberSubscription.TenantID, secureCode))
					return -1;

			MemberSubscriptionDA obj = new MemberSubscriptionDA("ConnectionString");
			return obj.Insert(memberSubscription);
		}


		[WebMethod]
		public int MemberSubscriptionUpdate(MemberSubscription memberSubscription, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(memberSubscription.TenantID, secureCode))
					return -1;

			MemberSubscriptionDA obj = new MemberSubscriptionDA("ConnectionString");
			return obj.Update(memberSubscription);
		}


		[WebMethod]
		public int MemberSubscriptionDelete(int memberSubscriptionID, int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return -1;

			MemberSubscriptionDA obj = new MemberSubscriptionDA("ConnectionString");
			return obj.Delete(memberSubscriptionID,tenantID);
		}


		[WebMethod]
		public  int MemberSubscriptionDeleteAllByProfileID(int profileID, int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return -1;

			MemberSubscriptionDA obj = new MemberSubscriptionDA("ConnectionString");
			return obj.DeleteAllByProfileID(profileID,tenantID);
		}

		[WebMethod]
		public  int MemberSubscriptionDeleteAllBySubscriptionID(int subscriptionID, int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return -1;

			MemberSubscriptionDA obj = new MemberSubscriptionDA("ConnectionString");
			return obj.DeleteAllBySubscriptionID(subscriptionID,tenantID);
		}

		[WebMethod]
		public  int MemberSubscriptionDeleteAllByTenantID(int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return -1;

			MemberSubscriptionDA obj = new MemberSubscriptionDA("ConnectionString");
			return obj.DeleteAllByTenantID(tenantID);
		}


		[WebMethod]
		public MemberVideo MemberVideoSelect(int videoID, int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return null;

			MemberVideoDA obj = new MemberVideoDA("ConnectionString");
			return obj.Select(videoID,tenantID);
		}


		[WebMethod]
		public List<MemberVideo> MemberVideoSelectAll(int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return null;

			MemberVideoDA obj = new MemberVideoDA("ConnectionString");
			return obj.SelectAll(tenantID);
		}


		[WebMethod]
		public List<MemberVideo> MemberVideoSelectAllByProfileID(int profileID, int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return null;

			MemberVideoDA obj = new MemberVideoDA("ConnectionString");
			return obj.SelectAllByProfileID(profileID,tenantID);
		}

		[WebMethod]
		public List<MemberVideo> MemberVideoSelectAllByTenantID(int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return null;

			MemberVideoDA obj = new MemberVideoDA("ConnectionString");
			return obj.SelectAllByTenantID(tenantID);
		}


		[WebMethod]
		public int MemberVideoInsert(MemberVideo memberVideo, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(memberVideo.TenantID, secureCode))
					return -1;

			MemberVideoDA obj = new MemberVideoDA("ConnectionString");
			return obj.Insert(memberVideo);
		}


		[WebMethod]
		public int MemberVideoUpdate(MemberVideo memberVideo, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(memberVideo.TenantID, secureCode))
					return -1;

			MemberVideoDA obj = new MemberVideoDA("ConnectionString");
			return obj.Update(memberVideo);
		}


		[WebMethod]
		public int MemberVideoDelete(int videoID, int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return -1;

			MemberVideoDA obj = new MemberVideoDA("ConnectionString");
			return obj.Delete(videoID,tenantID);
		}


		[WebMethod]
		public  int MemberVideoDeleteAllByProfileID(int profileID, int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return -1;

			MemberVideoDA obj = new MemberVideoDA("ConnectionString");
			return obj.DeleteAllByProfileID(profileID,tenantID);
		}

		[WebMethod]
		public  int MemberVideoDeleteAllByTenantID(int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return -1;

			MemberVideoDA obj = new MemberVideoDA("ConnectionString");
			return obj.DeleteAllByTenantID(tenantID);
		}


		[WebMethod]
		public MessageIdea MessageIdeaSelect(int ideaID, int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return null;

			MessageIdeaDA obj = new MessageIdeaDA("ConnectionString");
			return obj.Select(ideaID,tenantID);
		}


		[WebMethod]
		public List<MessageIdea> MessageIdeaSelectAll(int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return null;

			MessageIdeaDA obj = new MessageIdeaDA("ConnectionString");
			return obj.SelectAll(tenantID);
		}


		[WebMethod]
		public List<MessageIdea> MessageIdeaSelectAllByTenantID(int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return null;

			MessageIdeaDA obj = new MessageIdeaDA("ConnectionString");
			return obj.SelectAllByTenantID(tenantID);
		}


		[WebMethod]
		public int MessageIdeaInsert(MessageIdea messageIdea, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(messageIdea.TenantID, secureCode))
					return -1;

			MessageIdeaDA obj = new MessageIdeaDA("ConnectionString");
			return obj.Insert(messageIdea);
		}


		[WebMethod]
		public int MessageIdeaUpdate(MessageIdea messageIdea, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(messageIdea.TenantID, secureCode))
					return -1;

			MessageIdeaDA obj = new MessageIdeaDA("ConnectionString");
			return obj.Update(messageIdea);
		}


		[WebMethod]
		public int MessageIdeaDelete(int ideaID, int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return -1;

			MessageIdeaDA obj = new MessageIdeaDA("ConnectionString");
			return obj.Delete(ideaID,tenantID);
		}


		[WebMethod]
		public  int MessageIdeaDeleteAllByTenantID(int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return -1;

			MessageIdeaDA obj = new MessageIdeaDA("ConnectionString");
			return obj.DeleteAllByTenantID(tenantID);
		}


		[WebMethod]
		public PersonalityMapping PersonalityMappingSelect(int mappingID, int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return null;

			PersonalityMappingDA obj = new PersonalityMappingDA("ConnectionString");
			return obj.Select(mappingID,tenantID);
		}


		[WebMethod]
		public List<PersonalityMapping> PersonalityMappingSelectAll(int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return null;

			PersonalityMappingDA obj = new PersonalityMappingDA("ConnectionString");
			return obj.SelectAll(tenantID);
		}


		[WebMethod]
		public List<PersonalityMapping> PersonalityMappingSelectAllByQuestionID(int questionID, int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return null;

			PersonalityMappingDA obj = new PersonalityMappingDA("ConnectionString");
			return obj.SelectAllByQuestionID(questionID,tenantID);
		}

		[WebMethod]
		public List<PersonalityMapping> PersonalityMappingSelectAllByTenantID(int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return null;

			PersonalityMappingDA obj = new PersonalityMappingDA("ConnectionString");
			return obj.SelectAllByTenantID(tenantID);
		}


		[WebMethod]
		public int PersonalityMappingInsert(PersonalityMapping personalityMapping, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(personalityMapping.TenantID, secureCode))
					return -1;

			PersonalityMappingDA obj = new PersonalityMappingDA("ConnectionString");
			return obj.Insert(personalityMapping);
		}


		[WebMethod]
		public int PersonalityMappingUpdate(PersonalityMapping personalityMapping, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(personalityMapping.TenantID, secureCode))
					return -1;

			PersonalityMappingDA obj = new PersonalityMappingDA("ConnectionString");
			return obj.Update(personalityMapping);
		}


		[WebMethod]
		public int PersonalityMappingDelete(int mappingID, int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return -1;

			PersonalityMappingDA obj = new PersonalityMappingDA("ConnectionString");
			return obj.Delete(mappingID,tenantID);
		}


		[WebMethod]
		public  int PersonalityMappingDeleteAllByQuestionID(int questionID, int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return -1;

			PersonalityMappingDA obj = new PersonalityMappingDA("ConnectionString");
			return obj.DeleteAllByQuestionID(questionID,tenantID);
		}

		[WebMethod]
		public  int PersonalityMappingDeleteAllByTenantID(int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return -1;

			PersonalityMappingDA obj = new PersonalityMappingDA("ConnectionString");
			return obj.DeleteAllByTenantID(tenantID);
		}


		[WebMethod]
		public PersonalityQuestion PersonalityQuestionSelect(int questionID, int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return null;

			PersonalityQuestionDA obj = new PersonalityQuestionDA("ConnectionString");
			return obj.Select(questionID,tenantID);
		}


		[WebMethod]
		public List<PersonalityQuestion> PersonalityQuestionSelectAll(int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return null;

			PersonalityQuestionDA obj = new PersonalityQuestionDA("ConnectionString");
			return obj.SelectAll(tenantID);
		}


		[WebMethod]
		public List<PersonalityQuestion> PersonalityQuestionSelectAllByTenantID(int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return null;

			PersonalityQuestionDA obj = new PersonalityQuestionDA("ConnectionString");
			return obj.SelectAllByTenantID(tenantID);
		}


		[WebMethod]
		public int PersonalityQuestionInsert(PersonalityQuestion personalityQuestion, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(personalityQuestion.TenantID, secureCode))
					return -1;

			PersonalityQuestionDA obj = new PersonalityQuestionDA("ConnectionString");
			return obj.Insert(personalityQuestion);
		}


		[WebMethod]
		public int PersonalityQuestionUpdate(PersonalityQuestion personalityQuestion, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(personalityQuestion.TenantID, secureCode))
					return -1;

			PersonalityQuestionDA obj = new PersonalityQuestionDA("ConnectionString");
			return obj.Update(personalityQuestion);
		}


		[WebMethod]
		public int PersonalityQuestionDelete(int questionID, int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return -1;

			PersonalityQuestionDA obj = new PersonalityQuestionDA("ConnectionString");
			return obj.Delete(questionID,tenantID);
		}


		[WebMethod]
		public  int PersonalityQuestionDeleteAllByTenantID(int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return -1;

			PersonalityQuestionDA obj = new PersonalityQuestionDA("ConnectionString");
			return obj.DeleteAllByTenantID(tenantID);
		}


		[WebMethod]
		public PersonalityValue PersonalityValueSelect(int valueID, int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return null;

			PersonalityValueDA obj = new PersonalityValueDA("ConnectionString");
			return obj.Select(valueID,tenantID);
		}


		[WebMethod]
		public List<PersonalityValue> PersonalityValueSelectAll(int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return null;

			PersonalityValueDA obj = new PersonalityValueDA("ConnectionString");
			return obj.SelectAll(tenantID);
		}


		[WebMethod]
		public List<PersonalityValue> PersonalityValueSelectAllByTenantID(int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return null;

			PersonalityValueDA obj = new PersonalityValueDA("ConnectionString");
			return obj.SelectAllByTenantID(tenantID);
		}


		[WebMethod]
		public int PersonalityValueInsert(PersonalityValue personalityValue, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(personalityValue.TenantID, secureCode))
					return -1;

			PersonalityValueDA obj = new PersonalityValueDA("ConnectionString");
			return obj.Insert(personalityValue);
		}


		[WebMethod]
		public int PersonalityValueUpdate(PersonalityValue personalityValue, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(personalityValue.TenantID, secureCode))
					return -1;

			PersonalityValueDA obj = new PersonalityValueDA("ConnectionString");
			return obj.Update(personalityValue);
		}


		[WebMethod]
		public int PersonalityValueDelete(int valueID, int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return -1;

			PersonalityValueDA obj = new PersonalityValueDA("ConnectionString");
			return obj.Delete(valueID,tenantID);
		}


		[WebMethod]
		public  int PersonalityValueDeleteAllByTenantID(int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return -1;

			PersonalityValueDA obj = new PersonalityValueDA("ConnectionString");
			return obj.DeleteAllByTenantID(tenantID);
		}


		[WebMethod]
		public Subscription SubscriptionSelect(int subscriptionID, int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return null;

			SubscriptionDA obj = new SubscriptionDA("ConnectionString");
			return obj.Select(subscriptionID,tenantID);
		}


		[WebMethod]
		public List<Subscription> SubscriptionSelectAll(int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return null;

			SubscriptionDA obj = new SubscriptionDA("ConnectionString");
			return obj.SelectAll(tenantID);
		}


		[WebMethod]
		public List<Subscription> SubscriptionSelectAllByTenantID(int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return null;

			SubscriptionDA obj = new SubscriptionDA("ConnectionString");
			return obj.SelectAllByTenantID(tenantID);
		}


		[WebMethod]
		public int SubscriptionInsert(Subscription subscription, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(subscription.TenantID, secureCode))
					return -1;

			SubscriptionDA obj = new SubscriptionDA("ConnectionString");
			return obj.Insert(subscription);
		}


		[WebMethod]
		public int SubscriptionUpdate(Subscription subscription, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(subscription.TenantID, secureCode))
					return -1;

			SubscriptionDA obj = new SubscriptionDA("ConnectionString");
			return obj.Update(subscription);
		}


		[WebMethod]
		public int SubscriptionDelete(int subscriptionID, int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return -1;

			SubscriptionDA obj = new SubscriptionDA("ConnectionString");
			return obj.Delete(subscriptionID,tenantID);
		}


		[WebMethod]
		public  int SubscriptionDeleteAllByTenantID(int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return -1;

			SubscriptionDA obj = new SubscriptionDA("ConnectionString");
			return obj.DeleteAllByTenantID(tenantID);
		}


		[WebMethod]
		public SuccessStory SuccessStorySelect(int successStoryID, int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return null;

			SuccessStoryDA obj = new SuccessStoryDA("ConnectionString");
			return obj.Select(successStoryID,tenantID);
		}


		[WebMethod]
		public List<SuccessStory> SuccessStorySelectAll(int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return null;

			SuccessStoryDA obj = new SuccessStoryDA("ConnectionString");
			return obj.SelectAll(tenantID);
		}


		[WebMethod]
		public List<SuccessStory> SuccessStorySelectAllByProfileID(int profileID, int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return null;

			SuccessStoryDA obj = new SuccessStoryDA("ConnectionString");
			return obj.SelectAllByProfileID(profileID,tenantID);
		}

		[WebMethod]
		public List<SuccessStory> SuccessStorySelectAllByTenantID(int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return null;

			SuccessStoryDA obj = new SuccessStoryDA("ConnectionString");
			return obj.SelectAllByTenantID(tenantID);
		}


		[WebMethod]
		public int SuccessStoryInsert(SuccessStory successStory, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(successStory.TenantID, secureCode))
					return -1;

			SuccessStoryDA obj = new SuccessStoryDA("ConnectionString");
			return obj.Insert(successStory);
		}


		[WebMethod]
		public int SuccessStoryUpdate(SuccessStory successStory, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(successStory.TenantID, secureCode))
					return -1;

			SuccessStoryDA obj = new SuccessStoryDA("ConnectionString");
			return obj.Update(successStory);
		}


		[WebMethod]
		public int SuccessStoryDelete(int successStoryID, int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return -1;

			SuccessStoryDA obj = new SuccessStoryDA("ConnectionString");
			return obj.Delete(successStoryID,tenantID);
		}


		[WebMethod]
		public  int SuccessStoryDeleteAllByProfileID(int profileID, int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return -1;

			SuccessStoryDA obj = new SuccessStoryDA("ConnectionString");
			return obj.DeleteAllByProfileID(profileID,tenantID);
		}

		[WebMethod]
		public  int SuccessStoryDeleteAllByTenantID(int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return -1;

			SuccessStoryDA obj = new SuccessStoryDA("ConnectionString");
			return obj.DeleteAllByTenantID(tenantID);
		}


		[WebMethod]
		public Tenant TenantSelect(int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return null;

			TenantDA obj = new TenantDA("ConnectionString");
			return obj.Select(tenantID);
		}


		[WebMethod]
		public List<Tenant> TenantSelectAll(int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return null;

			TenantDA obj = new TenantDA("ConnectionString");
			return obj.SelectAll(tenantID);
		}



		[WebMethod]
		public int TenantInsert(Tenant tenant, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenant.TenantID, secureCode))
					return -1;

			TenantDA obj = new TenantDA("ConnectionString");
			return obj.Insert(tenant);
		}


		[WebMethod]
		public int TenantUpdate(Tenant tenant, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenant.TenantID, secureCode))
					return -1;

			TenantDA obj = new TenantDA("ConnectionString");
			return obj.Update(tenant);
		}


		[WebMethod]
		public int TenantDelete(int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return -1;

			TenantDA obj = new TenantDA("ConnectionString");
			return obj.Delete(tenantID);
		}



		[WebMethod]
		public WhomILike WhomILikeSelect(int likeID, int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return null;

			WhomILikeDA obj = new WhomILikeDA("ConnectionString");
			return obj.Select(likeID,tenantID);
		}


		[WebMethod]
		public List<WhomILike> WhomILikeSelectAll(int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return null;

			WhomILikeDA obj = new WhomILikeDA("ConnectionString");
			return obj.SelectAll(tenantID);
		}


		[WebMethod]
		public List<WhomILike> WhomILikeSelectAllByProfileID(int profileID, int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return null;

			WhomILikeDA obj = new WhomILikeDA("ConnectionString");
			return obj.SelectAllByProfileID(profileID,tenantID);
		}

		[WebMethod]
		public List<WhomILike> WhomILikeSelectAllByTenantID(int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return null;

			WhomILikeDA obj = new WhomILikeDA("ConnectionString");
			return obj.SelectAllByTenantID(tenantID);
		}


		[WebMethod]
		public int WhomILikeInsert(WhomILike whomILike, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(whomILike.TenantID, secureCode))
					return -1;

			WhomILikeDA obj = new WhomILikeDA("ConnectionString");
			return obj.Insert(whomILike);
		}


		[WebMethod]
		public int WhomILikeUpdate(WhomILike whomILike, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(whomILike.TenantID, secureCode))
					return -1;

			WhomILikeDA obj = new WhomILikeDA("ConnectionString");
			return obj.Update(whomILike);
		}


		[WebMethod]
		public int WhomILikeDelete(int likeID, int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return -1;

			WhomILikeDA obj = new WhomILikeDA("ConnectionString");
			return obj.Delete(likeID,tenantID);
		}


		[WebMethod]
		public  int WhomILikeDeleteAllByProfileID(int profileID, int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return -1;

			WhomILikeDA obj = new WhomILikeDA("ConnectionString");
			return obj.DeleteAllByProfileID(profileID,tenantID);
		}

		[WebMethod]
		public  int WhomILikeDeleteAllByTenantID(int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return -1;

			WhomILikeDA obj = new WhomILikeDA("ConnectionString");
			return obj.DeleteAllByTenantID(tenantID);
		}


		[WebMethod]
		public WhomViewed WhomViewedSelect(int viewID, int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return null;

			WhomViewedDA obj = new WhomViewedDA("ConnectionString");
			return obj.Select(viewID,tenantID);
		}


		[WebMethod]
		public List<WhomViewed> WhomViewedSelectAll(int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return null;

			WhomViewedDA obj = new WhomViewedDA("ConnectionString");
			return obj.SelectAll(tenantID);
		}


		[WebMethod]
		public List<WhomViewed> WhomViewedSelectAllByProfileID(int profileID, int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return null;

			WhomViewedDA obj = new WhomViewedDA("ConnectionString");
			return obj.SelectAllByProfileID(profileID,tenantID);
		}

		[WebMethod]
		public List<WhomViewed> WhomViewedSelectAllByTenantID(int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return null;

			WhomViewedDA obj = new WhomViewedDA("ConnectionString");
			return obj.SelectAllByTenantID(tenantID);
		}


		[WebMethod]
		public int WhomViewedInsert(WhomViewed whomViewed, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(whomViewed.TenantID, secureCode))
					return -1;

			WhomViewedDA obj = new WhomViewedDA("ConnectionString");
			return obj.Insert(whomViewed);
		}


		[WebMethod]
		public int WhomViewedUpdate(WhomViewed whomViewed, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(whomViewed.TenantID, secureCode))
					return -1;

			WhomViewedDA obj = new WhomViewedDA("ConnectionString");
			return obj.Update(whomViewed);
		}


		[WebMethod]
		public int WhomViewedDelete(int viewID, int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return -1;

			WhomViewedDA obj = new WhomViewedDA("ConnectionString");
			return obj.Delete(viewID,tenantID);
		}


		[WebMethod]
		public  int WhomViewedDeleteAllByProfileID(int profileID, int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return -1;

			WhomViewedDA obj = new WhomViewedDA("ConnectionString");
			return obj.DeleteAllByProfileID(profileID,tenantID);
		}

		[WebMethod]
		public  int WhomViewedDeleteAllByTenantID(int tenantID, string secureCode)
		{

			if (!ValidateRequest.ValidateUser(tenantID, secureCode))
					return -1;

			WhomViewedDA obj = new WhomViewedDA("ConnectionString");
			return obj.DeleteAllByTenantID(tenantID);
		}

	}
}
